package cupk.abner;

public class PhoneDirector {
    private PhoneBuilder  builder;
    public PhoneDirector(PhoneBuilder concreteBuilder){
        this.builder = concreteBuilder;
    }

    public Phone concretePhone(){
        this.builder.buildName();
        this.builder.buildCPU();
        this.builder.buildARM();
        this.builder.buildMemoryCapacity();
        return this.builder.getPhone();
    }

    public void setBuilder(PhoneBuilder builder) {
        this.builder = builder;
    }
}